package day02;

public class IntDemo {
    public static void main(String[] args) {
        //int:整型,4个字节。,-2^31~2^31-1(正负21多个亿)
        int a = 25;
        //int b = 10000000000;编译错误超出范围
        //int c = 3.14;编译错误，只能装整数
        System.out.println(5/2);//2
        System.out.println(2/5);//0
        System.out.println(5/2.0);//2.5

        int d = 2147483647;//int最大值
        d = d+1;
        System.out.println(d);//-2147483648(int最小值),发生溢出
        d = d*33333;
        System.out.println(d);
        //运算L往前放
    }
}
